const TILEURL = {
    'AMAP_IMG': {
        url: 'https://webst0{s}.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}',
        subdomains: ['1', '2', '3', '4']
    },
    'AMAP_LBL': {
        url: 'http://wprd0{s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&x={x}&y={y}&z={z}&scl=4&style=8&ltype=4',
        subdomains: ['1', '2', '3', '4']
    },
    'TDT_IMG': {
        url: 'http://t{s}.tianditu.com/DataServer?tk=c6a74bc1b752d5cfa699dbd386cafcf7&T=img_w&x={x}&y={y}&l={z}',
        subdomains: ['0', '1', '2', '3', '4', '5', '6', '7']
    },
    'TDT_VEC': {
        url: 'http://t{s}.tianditu.com/DataServer?tk=c6a74bc1b752d5cfa699dbd386cafcf7&T=vec_w&x={x}&y={y}&l={z}',
        subdomains: ['0', '1', '2', '3', '4', '5', '6', '7']
    },
    'TDT_IMG_LBL': {
        url: 'http://t{s}.tianditu.com/DataServer?tk=c6a74bc1b752d5cfa699dbd386cafcf7&T=cia_w&x={x}&y={y}&l={z}',
        subdomains: ['0', '1', '2', '3', '4', '5', '6', '7']
    },
    'TDT_VEC_LBL': {
        url: 'http://t{s}.tianditu.com/DataServer?tk=c6a74bc1b752d5cfa699dbd386cafcf7&T=cva_w&x={x}&y={y}&l={z}',
        subdomains: ['0', '1', '2', '3', '4', '5', '6', '7']
    }
}

const pointsData = [
    {
        "id": 1,
        "name": "六桶镇",
        "remark": "备注信息",
        "x": 113.00250973648545	,
        "y": 35.99385516210383,
        "z": 1000
    },
    {
        "id": 1,
        "name": "六桶镇",
        "remark": "备注信息",
        "x": 113.010470080012,
        "y": 36.999511894290734,
        "z": 1000
    },
    {
        "id": 1,
        "name": "六桶镇",
        "remark": "备注信息",
        "x": 114.00551302083018,
        "y": 36.00712240131474,
        "z": 1000
    },
    {
        "id": 1,
        "name": "六桶镇",
        "remark": "备注信息",
        "x": 114.01347336435671,
        "y": 36.98889810292201,
        "z": 1000
    }
]

const treeDatas = [
    {
        label: '实体',
        value: 'entity',
        children: [
            {
                label: '添加点',
                value: 'points'
            },
            {
                label: '添加图标',
                value: 'billboard'
            },
            {
                label: '添加标注',
                value: 'label'
            },
            {
                label: '添加高程点',
                value: 'pointsH'
            },
            {
                label: '添加线',
                value: 'polylines'
            },
            {
                label: '添加面',
                value: 'polygons'
            },
            {
                label: '添加长方体',
                value: 'box'
            },
            {
                label: '添加拐角',
                value: 'corridor'
            },
            {
                label: '添加椭圆',
                value: 'ellipse'
            },
            {
                label: '添加椭球体',
                value: 'ellipsoid'//plane
            },
            {
                label: '添加平面',
                value: 'plane'
            },
            {
                label: '添加墙',
                value: 'wall'
            },
            {
                label: '添加模型',
                value: 'model'
            },
            {
                label: '添加矩形',
                value: 'rectangle'
            },
            {
                label: '添加图片',
                value: 'image'
            }
        ],
    },
    {
        label: '数据',
        value: 'data',
        children: [
            {
                label: 'czml',
                value: 'czml.json',
                type: 'data'
            },
            {
                label: 'kml',
                value: 'route.kml',
                type: 'data'
            },
            {
                label: 'geojson-point',
                value: 'point.json',
                type: 'data'
            },
            {
                label: 'geojson-line',
                value: 'line.json',
                type: 'data'
            },
            {
                label: 'geojson-polygon',
                value: 'polygon.json',
                type: 'data'
            },
            {
                label: 'geojson-building',
                value: 'building.geojson',
                type: 'data'
            }
        ]
    },
    {
        label: '服务',
        value: 'service',
        children: [
            {
                label: 'wms',
                value: {
                    url: 'https://ahocevar.com/geoserver/wms',
                    layers: 'topp:states'
                },
                type: 'service'
            },
            {
                label: 'mapbox',
                value: {
                    styleId: 'streets-v11',
                    accessToken: 'pk.eyJ1IjoibHp1bml1anAwOCIsImEiOiJjam5iZmZwamMwN3RnM2twOHByeHJ4NzJoIn0.IVVIcCdRmFQE8-nQF-8wTA',
                    scaleFactor:true
                },
                type: 'service'
            },
            {
                label: 'xyz-tile',
                value: {
                    url: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
                    subdomains: ['a', 'b', 'c']
                },
                type: 'service'
            },
            {
                label: 'tms-tile',
                value: {
                    url: 'http://localhost:8086/geoserver/gwc/service/tms/1.0.0/lzugis%3Acapital@EPSG%3A900913@png/{z}/{x}/{reverseY}.png',
                    subdomains: []
                },
                type: 'service'
            },
            {
                label: 'wmts',
                value: {
                    layer: 'lzugis:capital',
                    url: 'http://localhost:8086/geoserver/gwc/service/wmts?layer={layer}&style={style}&tilematrixset={TileMatrixSet}&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng&TileMatrix={TileMatrixSet}:{TileMatrix}&TileCol={TileCol}&TileRow={TileRow}',
                },
                type: 'service'
            },
            {
                label: '3dtiles-osgb',
                value: {
                    url: 'http://localhost:8086/building/tileset.json',
                },
                type: 'service'
            },
            {
                label: '3dtiles-shp',
                value: {
                    url: 'http://localhost:8086/shenzhen/tileset.json',
                },
                type: 'service'
            }
        ]
    }
]

export {
    TILEURL,
    pointsData,
    treeDatas
}